//
//  DDConstants.h
//  PrivateCloud
//
//  Created by mars on 13-10-19.
//  Copyright (c) 2013年 sarah doo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DDFileInfo.h"
#import "DDFolderInfo.h"
@interface DDConstants : NSObject{

    NSString* serverCloudId;
    NSString* serverCloudName;
    NSString* serverCloudType;

}
-(id)init;
+(int)getGloalId;
+(void)setGloalId:(int)uid;
+(DDConstants *)sharedConstants;
+(NSMutableArray *)shardServerFolderInfos;
+(void)addServerFiles:(NSArray *)fileInfos;
+(void)addFiles:(NSArray *)fileInfo andCode:(int) code;
+(void)removeAllFilesByCode:(int) code;
+(DDFileInfo *)getServerFileInfoById:(int)uid;
+(DDFileInfo *)getLocalFileInfoById:(int)uid;
+(void)removeFileFromLocalById:(int)uid;
+(NSArray *)getLocalFolders;
+(DDFolderInfo *)getLocalFoldersById:(int)uid;
+(NSString *)getFileInfoType:(NSString *)fileName;
+(NSMutableArray *)shardLocalFolderInfos;
+(void)removeLocalFolders;
//code是1的时候代表服务器，code是2的时候代表客户端
//+(void)addServerFile:(DDFileInfo *)fileInfo andCode:(int)code;
+(void)addFile:(DDFileInfo *)fileInfo andCode:(int)code;
+(void)setServerContactCount:(int)count;
+(int)getServerContactCount;
+(void)setSharedLocalFolderInfos:(NSMutableArray*)infos;
@end
